package vashion.azeroth.core.manager.personal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.manager.impl.BaseManagerImpl;
import vashion.azeroth.core.personal.dao.PersonalFavoritesDao;
import vashion.azeroth.core.personal.pojo.PersonalFavorites;

/**
 * 
 * 收藏
 * 
 * */
@Service
public class PersonalFavoritesManager extends
		BaseManagerImpl<PersonalFavorites> {

	@Autowired
	PersonalFavoritesDao personalFavoritesDao;

	@Override
	public BaseDao<PersonalFavorites> getDao() {

		return personalFavoritesDao;
	}

	public int updateById(PersonalFavorites personalFavorites) {

		int cnt = personalFavoritesDao.updateById(personalFavorites);

		return cnt;
	}

}
